/**
 * 
 */
package com.gr.staffpm.pages.tasks;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.markup.html.AjaxLink;

import com.gr.staffpm.gof.command.IAjaxCommand;


/**
 * @author Graham Rhodes 17 Jan 2011 01:35:12
 */
public class AjaxReviewLink extends AjaxLink<Void> {

    private static final long serialVersionUID = 1L;
    private final IAjaxCommand command;

    public AjaxReviewLink(IAjaxCommand command) {
        super("link");
        this.command = command;
    }

    /* (non-Javadoc)
     * @see org.apache.wicket.ajax.markup.html.AjaxLink#onClick(org.apache.wicket.ajax.AjaxRequestTarget)
     */
    @Override
    public void onClick(AjaxRequestTarget target) {
        command.execute(target);
    }
}
